]> dgit.raspbian.org Git - gnome-shell.git/commit
unlockDialog: Also center the time in 12h format
authorpesader <pedro.saderazevedo@pm.me>
Sun, 28 Apr 2024 20:40:59 +0000 (17:40 -0300)
committerpesader <pedro.saderazevedo@pm.me>
Sun, 28 Apr 2024 21:20:32 +0000 (18:20 -0300)
commitccdd46c0d9372d8587809eb11add08ee87200b67
tree868a7ceb3a158eba767fde8726266dbc035444d9
parentaa51d56fa238a843682e5d2ea72a69401e5639fb
unlockDialog: Also center the time in 12h format

Since the time string uses a space to pad single-digit numbers, the
centered label looks off-center. Fix this by applying the trim()
function to get rid of whitespaces.

The drawback of this approach is that the label will change position
slightly when the time changes, but for the lockscreen that's okay.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6193
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3290>
js/ui/unlockDialog.js